package com.juzi.wopu.test;

import java.io.FileInputStream;
//import java.sql.Connection;
//import java.sql.DriverManager;
import java.util.Properties;

import org.junit.Test;

public class DomainGetter {
	
//	jdbc.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
//			jdbc.url=jdbc:sqlserver://localhost:1433;databaseName=pm
//			jdbc.username=sa
//			jdbc.password=123
	
	@Test
	public void testGetDomain() throws Exception{
		FileInputStream inputStream=new FileInputStream("./src/main/resources/jdbc.properties");
		Properties properties=new Properties();
		properties.load(inputStream);
		Class.forName(properties.getProperty("jdbc.driverClassName"));
		//String url = properties.getProperty("jdbc.url");
		//String username = properties.getProperty("jdbc.username");
		//String password = properties.getProperty("jdbc.password");
		//Connection connection = DriverManager.getConnection(url, username, password);
		//inputStream.close();
		//String sql="";
		
	}
}
